/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.config.entity.pay;

import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 支付宝支付配置Entity
 * @author JiangYongKang
 * @version 2016-12-14
 */
public class ConfigPayAlipay extends DataEntity<ConfigPayAlipay> {
	
	private static final long serialVersionUID = 1L;
	private String account;		// 支付宝账户
	private Long partner;		// 合作伙伴ID
	private String securityCode;		// 交易安全校验码
	private String privateKey;		// 秘钥
	private String interfaceType;		// 接口类型
	private String isOpenBank;		// 是否开通网银
	
	public ConfigPayAlipay() {
		super();
	}

	public ConfigPayAlipay(String id){
		super(id);
	}

	@Length(min=0, max=255, message="支付宝账户长度必须介于 0 和 255 之间")
	public String getAccount() {
		return account;
	}

	public void setAccount(String account) {
		this.account = account;
	}
	
	public Long getPartner() {
		return partner;
	}

	public void setPartner(Long partner) {
		this.partner = partner;
	}
	
	@Length(min=0, max=255, message="交易安全校验码长度必须介于 0 和 255 之间")
	public String getSecurityCode() {
		return securityCode;
	}

	public void setSecurityCode(String securityCode) {
		this.securityCode = securityCode;
	}
	
	@Length(min=0, max=255, message="秘钥长度必须介于 0 和 255 之间")
	public String getPrivateKey() {
		return privateKey;
	}

	public void setPrivateKey(String privateKey) {
		this.privateKey = privateKey;
	}
	
	@Length(min=0, max=11, message="接口类型长度必须介于 0 和 11 之间")
	public String getInterfaceType() {
		return interfaceType;
	}

	public void setInterfaceType(String interfaceType) {
		this.interfaceType = interfaceType;
	}
	
	@Length(min=0, max=11, message="是否开通网银长度必须介于 0 和 11 之间")
	public String getIsOpenBank() {
		return isOpenBank;
	}

	public void setIsOpenBank(String isOpenBank) {
		this.isOpenBank = isOpenBank;
	}
	
}